package com.sc.nft.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.dto.IdRequest;
import com.sc.nft.enums.MallGoodsLabelEnums;
import com.sc.nft.exception.GlobalRunTimeException;
import com.sc.nft.sup.PageRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class MallGoodsLabelPageDTO extends PageRequest {

    @ApiModelProperty(value = "标签类型, NEW_LABEL,新品标签,ACTIVITY_LABEL,活动标签")
    private MallGoodsLabelEnums labelType;

    @ApiModelProperty(value = "标签名称")
    private String labelName;

    @ApiModelProperty(value = "启用状态")
    private Integer status;

    public void setStatus(Boolean status) {
        if (status != null) {
            this.status = status ? 1:0;
        }
    }
}
